package com.guo.dms.dept.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guo.dms.dept.user.dao.UserDao;
import com.guo.dms.dept.user.entity.User;


/**
 * 用户服务类
 * @author Administrator
 *
 */
@Service
public class UserService {
	 @Autowired
	 UserDao userDao;
	 
	 public User getUser(Integer id){
		return  userDao.selectByPrimaryKey(id);
	 }
	 
	 public List<User> getUsers(){
		return  userDao.selectAllUser();
	 }
	 public User  getUserByAccount(String account){
		return userDao.selectUserByUserName(account);
	 }
}
